﻿<%@ Page Title="" Language="C#" MasterPageFile="~/MasterClient.Master" ValidateRequest="false" AutoEventWireup="true" CodeFile="frmD_CompLoginManager.aspx.cs" Inherits="frmD_CompLoginManager" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">J-SYSTEM</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
    
    <script src="js/jquery.min.js" type="text/javascript" language="javascript"></script>
    <script src="js/Validation.js" type="text/javascript"></script>
    
    <style>
        .detail-admin-row .detail-admin-label
        {
        	width:100px;
        }
    </style>
    <div class="maindiv1">
       
        <script type="text/javascript" language="javascript">
            $(document).ready(function() {
                registerEnterEvent("enter", "<%= btn_検索.ClientID %>", 3);
            });		
        </script>
        
        <br />
        
        <div class="detail-admin-row" >
            <span class="detail-admin-label">企業分類 : </span>
                <asp:Label
                id="lbl_企業分類"
                Visible="true"
                runat="server">
            </asp:Label>
            <asp:DropDownList 
                ID="ddl_企業分類" 
                runat="server" 
                CssClass= "dropdownlist width2  enter" 
                Visible="false" 
                onselectedindexchanged="ddl_企業分類_SelectedIndexChanged">
                <asp:ListItem Value="-1" Selected="True">[選択]</asp:ListItem>
                <asp:ListItem Value="1">実習実施機関</asp:ListItem>
                <asp:ListItem Value="3"> 送出し機関</asp:ListItem>
                <asp:ListItem Value="4">監理団体</asp:ListItem>
            </asp:DropDownList>
        </div>
        
        <div class="detail-admin-row">
            <span class="detail-admin-label">企業コード : </span>
            <asp:TextBox 
                ID="txt_企業コード" 
                runat="server" 
                MaxLength="50"
                CssClass="textbox width2 enter">
            </asp:TextBox>
        </div>
        
        <div class="detail-admin-row">
            <span class="detail-admin-label">企業名&nbsp : </span>
            <asp:TextBox 
                ID="txt_企業名" 
                runat="server" 
                MaxLength="500"
                CssClass="width2 textbox  enter">
            </asp:TextBox>
        </div>
        
        <div class="detail-admin-row">
            <div style="text-align:right; width:280px;">
                <asp:Button 
                    ID="btn_検索" 
                    runat="server" 
                    Text="検索" 
                    CssClass="button1" 
                    onclick="btn_検索_Click" />
            </div>
        </div>
        
        <div style="width:100%; clear:both; margin-top:30px; margin-left:12px;">
            <asp:GridView 
                id="grv" 
                runat="server"  
                ShowFooter="false" 
                AutoGenerateColumns="False" 
                AllowPaging="true"
                PageSize="10"
                Width="740px"
                PagerStyle-CssClass="pgr" 
                AlternatingRowStyle-CssClass="alt"
                CssClass="mGrid" 
                onpageindexchanging="grv_PageIndexChanging">
                    <Columns> 
                        <asp:TemplateField HeaderText="企業コード" HeaderStyle-Width="100">
                            <ItemTemplate>
                                <div style="text-align:center;">
                                    <%#Eval("企業コード")%>
                                </div>
                            </ItemTemplate>
                        </asp:TemplateField>
                      
                        <asp:TemplateField HeaderText="企業名" HeaderStyle-Width="180">
                            <ItemTemplate>
                                <div style="width:180px;text-align:left; overflow:hidden;white-space:normal">
                                   <asp:Label
                                        runat="server"
                                        id="lbl_企業名"
                                        Text='<%#ShowTextLength(Eval("企業名").ToString())%>'
                                        Tooltip='<%#Eval("企業名")%>' />
                                </div>
                            </ItemTemplate>
                        </asp:TemplateField>
                        
                        <asp:TemplateField HeaderText="企業分類" HeaderStyle-Width="120">
                            <ItemTemplate>
                                 <div style="width:120px;text-align:left; overflow:hidden;white-space:normal">
                                     <asp:Label
                                        runat="server"
                                        id="lbl_企業分類"
                                        Text='<%#Convert企業分類コード(Eval("企業分類コード").ToString())%>'/>
                                 </div>
                            </ItemTemplate>
                        </asp:TemplateField>
                        
                        <asp:TemplateField HeaderText="郵便番号" HeaderStyle-Width="100">
                            <ItemTemplate>
                                <div style="text-align:left">
                                    <%#Eval("郵便番号")%>
                                </div>
                            </ItemTemplate>
                        </asp:TemplateField>
                        
                        <asp:TemplateField HeaderText="ＴＥＬ" HeaderStyle-Width="140">
                            <ItemTemplate>
                                <div style="text-align:left">
                                    <%#Eval("ＴＥＬ")%>
                                </div>
                            </ItemTemplate>
                        </asp:TemplateField>
                       
                        <asp:TemplateField HeaderStyle-Width="100px" ItemStyle-HorizontalAlign="Center">
                            <HeaderTemplate>イベント</HeaderTemplate>
                            <ItemTemplate>
                                <asp:HyperLink 
                                    ID="HyperLink1"
                                    NavigateUrl='<%# "frmD_UserLoginManager.aspx?id=" + Eval("企業ID").ToString() %>' 
                                    Text="詳細"
                                    runat="server">
                                </asp:HyperLink>
                            </ItemTemplate>
                        </asp:TemplateField>
                  </Columns>
            </asp:GridView>       
        </div>
         
        <div style="text-align:left; margin-top:20px; margin-left:12px">
            <asp:Button 
                ID="Button1" 
                runat="server" 
                Text="戻る" 
                CssClass="button1" 
                onclick="Button1_Click" />
        </div>
    </div>


</asp:Content>

